//
//  HMSportTracking.m
//  HeiMaXing
//
//  Created by 黄跃奇 on 16/10/21.
//  Copyright © 2016年 itheima. All rights reserved.
//

#import "HMSportTracking.h"

@implementation HMSportTracking

- (instancetype)initWithType:(HMSportType)type
{
    self = [super init];
    if (self) {
        _sportType = type;
    }
    return self;
}

- (UIImage *)sportImage {
    
    UIImage *image;
    switch (_sportType) {
        case HMSportTypeRun:
            image = [UIImage imageNamed:@"map_annotation_run"];
            break;
        case HMSportTypeWalk:
            image = [UIImage imageNamed:@"map_annotation_walk"];
            break;
        case HMSportTypeBike:
            image = [UIImage imageNamed:@"map_annotation_bike"];
            break;
    }
    return image;
}

@end
